package com.iflytek.autofly.setting.util;

/**
 * @author 忧郁的西索 ★^_^+
 * @Description: 检测设备sd卡是否正常
 * @date 2013-12-25 上午9:23:57
 */
public class SDUtil {
    private static final long ERROR = -1;
    public static long saveDir = 1;

    public static boolean isSDCardOk() {
        // 存储卡处于挂载状态可以使用
        if (android.os.Environment.getExternalStorageState().equals(
                android.os.Environment.MEDIA_MOUNTED)) {
            return true;
        } else {
            return false;
        }
    }

    // 判断是否已经安装SD卡
    public static boolean isSDCardExist() {
        return android.os.Environment.getExternalStorageState().equals(
                android.os.Environment.MEDIA_MOUNTED);
    }

}
